package com.example.tossednfound;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

public class ItemProfileActivity extends Activity {
	TextView creator, rewardAmt, category, state, zipCode, streetAddress, tags, isDonation, createdDate, itemName, /*isLost,*/ description;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_item_profile);
		
		creator = (TextView) findViewById(R.id.iprofile_username);
		//photo = (TextView) findViewById(R.id.iprofile_picture);
		rewardAmt = (TextView) findViewById(R.id.iprofile_reward);
		category = (TextView) findViewById(R.id.iprofile_category);
		state = (TextView) findViewById(R.id.iprofile_state);
		zipCode = (TextView) findViewById(R.id.iprofile_zipcode);
		streetAddress = (TextView) findViewById(R.id.iprofile_streetAddress);
		tags = (TextView) findViewById(R.id.iprofile_tags);
		createdDate = (TextView) findViewById(R.id.iprofile_date);
		itemName = (TextView) findViewById(R.id.iprofile_name);
		description = (TextView) findViewById(R.id.iprofile_description);
		
		Item selected = LoginActivity.currentItem;
		creator.setText("Creator: " + selected.creator);
		//photo.setText(selected.photo);
		rewardAmt.setText("Reward: $" + Integer.toString(selected.rewardAmt));
		category.setText("Category: " + selected.category);
		state.setText("State: " + selected.state);
		zipCode.setText("Zip Code: " + selected.zipCode);
		streetAddress.setText("Address: " + selected.streetAddress);
		tags.setText("Tags: " + selected.tags);
		createdDate.setText("Date Created: " + selected.createdDate);
		itemName.setText("Item Name: " + selected.itemName);
		description.setText("Description: " + selected.description);
	}
	
}